<%--
  Created by IntelliJ IDEA.
  User: wwh
  Date: 2017/7/23
  Time: 13:02
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>用人单位信息</title>
    <link rel="stylesheet" href="../../static/common/layui/css/layui.css">
    <link rel="stylesheet" href="../../static/css/global.css">
    <link rel="stylesheet" href="../../static/css/table.css">
</head>
<body>
<div style="margin:15px;" id="Vue" v-cloak>
    <div v-show="show">
        <blockquote class="layui-elem-quote">
            <a href="javascript:;" class="layui-btn layui-btn-small" @click="add">
                <i class="layui-icon">&#xe608;</i> 添加
            </a>
            <div style="float: right;">
                <input type="text" id="searchVal">
                <a href="javascript:;" class="layui-btn layui-btn-small" @click="search">
                    <i class="layui-icon">&#xe615;</i>查询
                </a>
            </div>
        </blockquote>
        <fieldset class="layui-elem-field">
            <div class="layui-form">
                <table class="layui-table">
                    <thread>
                        <tr>
                            <th>企业名称</th>
                            <th>网址</th>
                            <th>状态</th>
                            <th>操作</th>
                        </tr>
                    </thread>
                    <%--内容容器--%>
                    <tbody id="content">
                    </tbody>
                </table>
            </div>
        </fieldset>
        <div class="admin-table-page">
            <div id="paged" class="page"></div>
        </div>
    </div>
</div>
<script>
    var userid = ${sessionScope.currentUser.getId()};
//    console.log(userid);
</script>
<script type="text/javascript" src="../../static/common/layui/layui.js"></script>
<script src="../../static/common/axios.min.js"></script>
<script src="../../static/common/vue.min.js"></script>
<!--模板-->
<script type="text/html" id="tpl">
    {{# layui.each(d.data,function(index,item){ }}
    <tr>
        <td>{{ item.fullname || "-" }}</td>
        <td>
            <a target="_blank" href="{{ item.url }}">{{ item.url || "-" }}</a>
        </td>

        {{# if(item.state==""){ }}
        <td>--</td>
        {{# }; }}
        {{# if(item.state=="1"){ }}
        <td>暂时保存</td>
        {{# }; }}
        {{# if(item.state=="2"){ }}
        <td>审核中</td>
        {{# }; }}
        {{# if(item.state=="3"){ }}
        <td>审核通过</td>
        {{# }; }}
        {{# if(item.state=="4"){ }}
        <td>审核未通过</td>
        {{# }; }}
        <td>
            <a href="javascript:;" data-id="{{item.id}}" data-opt="detail" class="layui-btn layui-btn-mini">详情</a>
            {{# if(item.state!="2"&&item.state!="3"){ }}
            <a href="javascript:;" data-opt="edit" class="layui-btn layui-btn-normal layui-btn-mini">编辑</a>
            {{# }; }}
        </td>
    </tr>
    {{# }); }}
</script>
<script src="../../static/js/student/employingUnits.js"></script>
</body>
</html>
